/******************************************************************************
 **
 **    LISA Confidential
 **
 **    Source Materials
 **
 **    (C) COPYRIGHT LISA 2008-2009
 **
 **
 **  File Name:      ReturnActionHandler.java
 **  Description:    Sets the variable of WFConstants.IS_RETURN to "yes" when one request is returned. 
 **  Date:           2008-10-27
 **  Author:         LisaQian
 ******************************************************************************/
package com.ti.andon.workflow.action;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

import com.ti.andon.workflow.WFConstants;

public class ReturnActionHandler implements ActionHandler{

	/**
	 * Serial Version ID.
	 */
	private static final long serialVersionUID = -8789854430012312956L;

	/* (non-Javadoc)
	 * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
	 */
	public void execute(ExecutionContext executionContext) throws Exception {
		executionContext.getContextInstance().setVariable(
				WFConstants.IS_RETURN, WFConstants.STRING_YES);

		// executionContext.getContextInstance().setVariable(WFConstants.JOINT_ORDER,
		// null);
	}

}
